# Maintainer: Steve McMaster <code@mcmaster.io>
pkgname=snort-extra
pkgver=3.1.82.0
pkgrel=0
pkgdesc="External plugins for snort"
url="https://github.com/snort3/snort3_extra"
# snort
arch="all !ppc64le !riscv64 !loongarch64"
license="GPL-2.0-only"
makedepends="
	daq-dev
	cmake
	samurai
	snort-dev
	"
source="https://www.snort.org/downloads/snortplus/snort3_extra-$pkgver.tar.gz"
builddir="$srcdir/snort3_extra-$pkgver"
options="!check" # doesn't have any tests

build() {
	CXXFLAGS="$CXXFLAGS -flto=auto" \
	cmake -B build -G Ninja -Wno-dev \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
ebd2e96f4aa0c2d373879a53a8f61935033581f527a8a336c3dc165ce9341645ac335462e6b4f5b43c84158e135f9330f6e81ebad629ff1da67157fe73bd4113  snort3_extra-3.1.82.0.tar.gz
"
